package com.param.impl;

import java.math.BigDecimal;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

import com.param.concat.IDiscountParam;

public class DiscountParam implements IDiscountParam {
	@NotNull
	@Min(value = 1, message = "id最小值为1")
	private int id;
	
	@NotNull
    @DecimalMin(value ="0.0", message="折扣最小值为0")
	private BigDecimal discount;
	
	public int getId() {
        return id;
    }
	
    public BigDecimal getDiscount() {
        return discount;
    }
    
    public void setId(int id) {
    	this.id = id;
    	
    }
    
    public void setDiscount(BigDecimal discount) {
        this.discount = discount;
    }
}
